import request from "@/utils/request";

// 订单类型
export function orderTypeList(data) {
  return request({
    url: "/order/type/list",
    method: "get",
    params: data
  });
}

// 订单类型添加
export function addType(data) {
  return request({
    url: "/order/type",
    method: "post",
    data: data
  });
}

// 订单类型修改
export function updateType(data) {
  return request({
    url: "/order/type",
    method: "put",
    data: data
  });
}

// 订单类型删除
export function deleteType(id) {
  return request({
    url: `/order/type/${id}`,
    method: "delete"
  });
}
